<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: D:/Projects/MiXiM/extsrc/mixim/src/inet_stub/networklayer/common/InterfaceEntry.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00388.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">InterfaceEntry.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2005 Andras Varga</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00006"></a>00006 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU Lesser General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>
<a name="l00015"></a>00015 <span class="comment">// License along with this program; if not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00016"></a>00016 <span class="comment">//</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef __INET_INTERFACEENTRY_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define __INET_INTERFACEENTRY_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;INETDefs.h&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;MACAddress.h&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;InterfaceToken.h&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;NotifierConsts.h&quot;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">// Forward declarations. Do NOT #include the corresponding header files</span>
<a name="l00031"></a>00031 <span class="comment">// since that would create dependence on IPv4 and IPv6 stuff!</span>
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a00104.html">InterfaceEntry</a>;
<a name="l00033"></a>00033 <span class="keyword">class </span><a class="code" href="a00100.html">IInterfaceTable</a>;
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="a00105.html">InterfaceProtocolData</a>;
<a name="l00035"></a>00035 <span class="keyword">class </span>IPv4InterfaceData;
<a name="l00036"></a>00036 <span class="keyword">class </span>IPv6InterfaceData;
<a name="l00037"></a>00037 
<a name="l00038"></a><a class="code" href="a00131.html">00038</a> <span class="keyword">class </span>INET_API <a class="code" href="a00131.html">MacEstimateCostProcess</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a>00041     <span class="keyword">virtual</span> ~<a class="code" href="a00131.html">MacEstimateCostProcess</a>() {};
<a name="l00042"></a>00042     <span class="keyword">virtual</span> <span class="keywordtype">double</span> getCost(<span class="keywordtype">int</span>, <a class="code" href="a00130.html">MACAddress</a> &amp;) = 0;
<a name="l00043"></a>00043     <span class="keyword">virtual</span> <span class="keywordtype">double</span> getNumCost() = 0;
<a name="l00044"></a>00044     <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNumNeighbors() = 0;
<a name="l00045"></a>00045     <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNeighbors(<a class="code" href="a00130.html">MACAddress</a> []) = 0;
<a name="l00046"></a>00046 };
<a name="l00047"></a>00047 
<a name="l00052"></a><a class="code" href="a00105.html">00052</a> <span class="keyword">class </span>INET_API <a class="code" href="a00105.html">InterfaceProtocolData</a> : <span class="keyword">public</span> cObject
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00104.html">InterfaceEntry</a>; <span class="comment">//only this guy is allowed to set ownerp</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056   <span class="keyword">protected</span>:
<a name="l00057"></a>00057     <a class="code" href="a00104.html">InterfaceEntry</a> *<a class="code" href="a00104.html#a6289a92de460fb4428e7a74cd101d8f9" title="IInterfaceTable that contains this interface, or NULL.">ownerp</a>;  <span class="comment">// the interface entry this object belongs to</span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059   <span class="keyword">protected</span>:
<a name="l00060"></a>00060     <span class="comment">// fires notification with the given category, and the interface entry as details</span>
<a name="l00061"></a>00061     <span class="keyword">virtual</span> <span class="keywordtype">void</span> changed(<span class="keywordtype">int</span> category);
<a name="l00062"></a>00062 
<a name="l00063"></a>00063   <span class="keyword">public</span>:
<a name="l00064"></a>00064     <a class="code" href="a00105.html">InterfaceProtocolData</a>() {<a class="code" href="a00104.html#a6289a92de460fb4428e7a74cd101d8f9" title="IInterfaceTable that contains this interface, or NULL.">ownerp</a> = NULL;}
<a name="l00065"></a>00065 
<a name="l00069"></a><a class="code" href="a00105.html#abdbf6a78e60579afda4a33ee6dff9c2e">00069</a>     <a class="code" href="a00104.html">InterfaceEntry</a> *<a class="code" href="a00105.html#abdbf6a78e60579afda4a33ee6dff9c2e">getInterfaceEntry</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00104.html#a6289a92de460fb4428e7a74cd101d8f9" title="IInterfaceTable that contains this interface, or NULL.">ownerp</a>;}
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 
<a name="l00078"></a><a class="code" href="a00104.html">00078</a> <span class="keyword">class </span>INET_API <a class="code" href="a00104.html">InterfaceEntry</a> : <span class="keyword">public</span> cNamedObject
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00105.html">InterfaceProtocolData</a>; <span class="comment">// to call protocolDataChanged()</span>
<a name="l00081"></a>00081   <span class="keyword">protected</span>:
<a name="l00082"></a><a class="code" href="a00104.html#a6289a92de460fb4428e7a74cd101d8f9">00082</a>     <a class="code" href="a00100.html">IInterfaceTable</a> *<a class="code" href="a00104.html#a6289a92de460fb4428e7a74cd101d8f9" title="IInterfaceTable that contains this interface, or NULL.">ownerp</a>; 
<a name="l00083"></a><a class="code" href="a00104.html#a36b516a9941d4a7b5b871c7e2e9ee656">00083</a>     cModule *<a class="code" href="a00104.html#a36b516a9941d4a7b5b871c7e2e9ee656" title="interface module, or NULL">interfaceModule</a>;  
<a name="l00084"></a><a class="code" href="a00104.html#ada612a44cae21cc624e97917869b9de7">00084</a>     <span class="keywordtype">int</span> <a class="code" href="a00104.html#ada612a44cae21cc624e97917869b9de7" title="identifies the interface in the IInterfaceTable">interfaceId</a>;      
<a name="l00085"></a><a class="code" href="a00104.html#a7e298a31165012a9bfdf6f6deb8b258f">00085</a>     <span class="keywordtype">int</span> <a class="code" href="a00104.html#a7e298a31165012a9bfdf6f6deb8b258f" title="index of ifIn[],ifOut[] gates to that interface (or -1 if virtual interface)">nwLayerGateIndex</a>; 
<a name="l00086"></a><a class="code" href="a00104.html#a499654dd92449cd6ca9b60971d57b1da">00086</a>     <span class="keywordtype">int</span> <a class="code" href="a00104.html#a499654dd92449cd6ca9b60971d57b1da" title="id of the output gate of this host/router (or -1 if this is a virtual interface)">nodeOutputGateId</a>; 
<a name="l00087"></a><a class="code" href="a00104.html#a0ca83d1b82869a65d7feb23b2f8434c1">00087</a>     <span class="keywordtype">int</span> <a class="code" href="a00104.html#a0ca83d1b82869a65d7feb23b2f8434c1" title="id of the input gate of this host/router (or -1 if this is a virtual interface)">nodeInputGateId</a>;  
<a name="l00088"></a><a class="code" href="a00104.html#a20e755e0dda30412a913cee45ae1fa16">00088</a>     <span class="keywordtype">int</span> <a class="code" href="a00104.html#a20e755e0dda30412a913cee45ae1fa16" title="Maximum Transmission Unit (e.g. 1500 on Ethernet)">mtu</a>;              
<a name="l00089"></a><a class="code" href="a00104.html#a2fbdce90dcbd45421e20e7611635119f">00089</a>     <span class="keywordtype">bool</span> <a class="code" href="a00104.html#a2fbdce90dcbd45421e20e7611635119f" title="current state (up or down)">down</a>;            
<a name="l00090"></a><a class="code" href="a00104.html#a41eb1e90b71f2c4bbfe176275ded187b">00090</a>     <span class="keywordtype">bool</span> <a class="code" href="a00104.html#a41eb1e90b71f2c4bbfe176275ded187b" title="interface supports broadcast">broadcast</a>;       
<a name="l00091"></a><a class="code" href="a00104.html#acdf3591512b266243b741abd8d53253d">00091</a>     <span class="keywordtype">bool</span> <a class="code" href="a00104.html#acdf3591512b266243b741abd8d53253d" title="interface supports multicast">multicast</a>;       
<a name="l00092"></a><a class="code" href="a00104.html#a1e7d91c0717974254d5013a64b237a4d">00092</a>     <span class="keywordtype">bool</span> <a class="code" href="a00104.html#a1e7d91c0717974254d5013a64b237a4d" title="interface is point-to-point link">pointToPoint</a>;    
<a name="l00093"></a><a class="code" href="a00104.html#a3fdb2607c57f9801282f8aacf4d9c4be">00093</a>     <span class="keywordtype">bool</span> <a class="code" href="a00104.html#a3fdb2607c57f9801282f8aacf4d9c4be" title="interface is loopback interface">loopback</a>;        
<a name="l00094"></a><a class="code" href="a00104.html#a79fe97f955e5976834fd2e79b7a450fd">00094</a>     <span class="keywordtype">double</span> <a class="code" href="a00104.html#a79fe97f955e5976834fd2e79b7a450fd" title="data rate in bit/s">datarate</a>;      
<a name="l00095"></a><a class="code" href="a00104.html#a1b147c7d4618223d25a2965eb56bbc7e">00095</a>     <a class="code" href="a00130.html">MACAddress</a> <a class="code" href="a00104.html#a1b147c7d4618223d25a2965eb56bbc7e" title="link-layer address (for now, only IEEE 802 MAC addresses are supported)">macAddr</a>;   
<a name="l00096"></a><a class="code" href="a00104.html#ac131fdac2f8d3891c54440420959e3f6">00096</a>     <a class="code" href="a00108.html">InterfaceToken</a> <a class="code" href="a00104.html#ac131fdac2f8d3891c54440420959e3f6" title="for IPv6 stateless autoconfig (RFC 1971), interface identifier (RFC 2462)">token</a>; 
<a name="l00097"></a>00097 
<a name="l00098"></a><a class="code" href="a00104.html#a36efe5a5310cc4ab8905c70deefeca83">00098</a>     IPv4InterfaceData *<a class="code" href="a00104.html#a36efe5a5310cc4ab8905c70deefeca83" title="IPv4-specific interface info (IPv4 address, etc)">ipv4data</a>;   
<a name="l00099"></a><a class="code" href="a00104.html#a885d1c26c9feac85c72502e07e61814b">00099</a>     IPv6InterfaceData *<a class="code" href="a00104.html#a885d1c26c9feac85c72502e07e61814b" title="IPv6-specific interface info (IPv6 addresses, etc)">ipv6data</a>;   
<a name="l00100"></a><a class="code" href="a00104.html#aaf92c0f281789b22731e956a08b64746">00100</a>     <a class="code" href="a00105.html">InterfaceProtocolData</a> *<a class="code" href="a00104.html#aaf92c0f281789b22731e956a08b64746" title="extension point: data for a 3rd network-layer protocol">protocol3data</a>; 
<a name="l00101"></a><a class="code" href="a00104.html#a782cab8a587cf1010acd9e352f8e2e1b">00101</a>     <a class="code" href="a00105.html">InterfaceProtocolData</a> *<a class="code" href="a00104.html#a782cab8a587cf1010acd9e352f8e2e1b" title="extension point: data for a 4th network-layer protocol">protocol4data</a>; 
<a name="l00102"></a>00102     std::vector&lt;MacEstimateCostProcess *&gt; estimateCostProcessArray;
<a name="l00103"></a>00103 
<a name="l00104"></a>00104   <span class="keyword">private</span>:
<a name="l00105"></a>00105     <span class="comment">// copying not supported: following are private and also left undefined</span>
<a name="l00106"></a>00106     <a class="code" href="a00104.html">InterfaceEntry</a>(<span class="keyword">const</span> <a class="code" href="a00104.html">InterfaceEntry</a>&amp; obj);
<a name="l00107"></a>00107     <a class="code" href="a00104.html">InterfaceEntry</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="a00104.html">InterfaceEntry</a>&amp; obj);
<a name="l00108"></a>00108 
<a name="l00109"></a>00109   <span class="keyword">protected</span>:
<a name="l00110"></a>00110     <span class="comment">// change notifications</span>
<a name="l00111"></a>00111     <span class="keyword">virtual</span> <span class="keywordtype">void</span> configChanged() {changed(NF_INTERFACE_CONFIG_CHANGED);}
<a name="l00112"></a>00112     <span class="keyword">virtual</span> <span class="keywordtype">void</span> stateChanged() {changed(NF_INTERFACE_STATE_CHANGED);}
<a name="l00113"></a>00113     <span class="keyword">virtual</span> <span class="keywordtype">void</span> changed(<span class="keywordtype">int</span> category);
<a name="l00114"></a>00114 
<a name="l00115"></a>00115   <span class="keyword">public</span>:
<a name="l00116"></a>00116     <span class="comment">// internal: to be invoked from InterfaceTable only!</span>
<a name="l00117"></a>00117     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInterfaceTable(<a class="code" href="a00100.html">IInterfaceTable</a> *t) {ownerp = t;}
<a name="l00118"></a>00118     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInterfaceId(<span class="keywordtype">int</span> <span class="keywordtype">id</span>) {interfaceId = id;}
<a name="l00119"></a>00119 
<a name="l00120"></a>00120   <span class="keyword">public</span>:
<a name="l00121"></a>00121     <a class="code" href="a00104.html">InterfaceEntry</a>(cModule *interfaceModule);
<a name="l00122"></a>00122     <span class="keyword">virtual</span> ~<a class="code" href="a00104.html">InterfaceEntry</a>() {}
<a name="l00123"></a>00123     <span class="keyword">virtual</span> std::string info() <span class="keyword">const</span>;
<a name="l00124"></a>00124     <span class="keyword">virtual</span> std::string detailedInfo() <span class="keyword">const</span>;
<a name="l00125"></a>00125     <span class="keyword">virtual</span> std::string getFullPath() <span class="keyword">const</span>;
<a name="l00126"></a>00126 
<a name="l00130"></a><a class="code" href="a00104.html#a33a11be3f630c1c014de8899d1e7d328">00130</a>     <a class="code" href="a00100.html">IInterfaceTable</a> *<a class="code" href="a00104.html#a33a11be3f630c1c014de8899d1e7d328">getInterfaceTable</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> ownerp;}
<a name="l00131"></a>00131 
<a name="l00134"></a>00134     <span class="keywordtype">int</span> getInterfaceId()<span class="keyword"> const        </span>{<span class="keywordflow">return</span> interfaceId;}
<a name="l00135"></a>00135     cModule *getInterfaceModule()<span class="keyword"> const  </span>{<span class="keywordflow">return</span> interfaceModule;}
<a name="l00136"></a>00136     <span class="keywordtype">int</span> getNetworkLayerGateIndex()<span class="keyword"> const </span>{<span class="keywordflow">return</span> nwLayerGateIndex;}
<a name="l00137"></a>00137     <span class="keywordtype">int</span> getNodeOutputGateId()<span class="keyword"> const   </span>{<span class="keywordflow">return</span> nodeOutputGateId;}
<a name="l00138"></a>00138     <span class="keywordtype">int</span> getNodeInputGateId()<span class="keyword"> const    </span>{<span class="keywordflow">return</span> nodeInputGateId;}
<a name="l00139"></a>00139     <span class="keywordtype">int</span> getMTU()<span class="keyword"> const                </span>{<span class="keywordflow">return</span> mtu;}
<a name="l00140"></a>00140     <span class="keywordtype">bool</span> isDown()<span class="keyword"> const               </span>{<span class="keywordflow">return</span> down;}
<a name="l00141"></a>00141     <span class="keywordtype">bool</span> isBroadcast()<span class="keyword"> const          </span>{<span class="keywordflow">return</span> broadcast;}
<a name="l00142"></a>00142     <span class="keywordtype">bool</span> isMulticast()<span class="keyword"> const          </span>{<span class="keywordflow">return</span> multicast;}
<a name="l00143"></a>00143     <span class="keywordtype">bool</span> isPointToPoint()<span class="keyword"> const       </span>{<span class="keywordflow">return</span> pointToPoint;}
<a name="l00144"></a>00144     <span class="keywordtype">bool</span> isLoopback()<span class="keyword"> const           </span>{<span class="keywordflow">return</span> loopback;}
<a name="l00145"></a>00145     <span class="keywordtype">double</span> getDatarate()<span class="keyword"> const        </span>{<span class="keywordflow">return</span> datarate;}
<a name="l00146"></a>00146     <span class="keyword">const</span> <a class="code" href="a00130.html">MACAddress</a>&amp; getMacAddress()<span class="keyword"> const  </span>{<span class="keywordflow">return</span> macAddr;}
<a name="l00147"></a>00147     <span class="keyword">const</span> <a class="code" href="a00108.html">InterfaceToken</a>&amp; getInterfaceToken()<span class="keyword"> const </span>{<span class="keywordflow">return</span> token;}
<a name="l00149"></a>00149 
<a name="l00152"></a>00152     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setName(<span class="keyword">const</span> <span class="keywordtype">char</span> *s)  {cNamedObject::setName(s); configChanged();}
<a name="l00153"></a>00153     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNetworkLayerGateIndex(<span class="keywordtype">int</span> i) {nwLayerGateIndex = i; configChanged();}
<a name="l00154"></a>00154     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNodeOutputGateId(<span class="keywordtype">int</span> i) {nodeOutputGateId = i; configChanged();}
<a name="l00155"></a>00155     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNodeInputGateId(<span class="keywordtype">int</span> i)  {nodeInputGateId = i; configChanged();}
<a name="l00156"></a>00156     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMtu(<span class="keywordtype">int</span> m)           {mtu = m; configChanged();}
<a name="l00157"></a>00157     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDown(<span class="keywordtype">bool</span> b)         {down = b; stateChanged();}
<a name="l00158"></a>00158     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setBroadcast(<span class="keywordtype">bool</span> b)    {broadcast = b; configChanged();}
<a name="l00159"></a>00159     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMulticast(<span class="keywordtype">bool</span> b)    {multicast = b; configChanged();}
<a name="l00160"></a>00160     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPointToPoint(<span class="keywordtype">bool</span> b) {pointToPoint = b; configChanged();}
<a name="l00161"></a>00161     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setLoopback(<span class="keywordtype">bool</span> b)     {loopback = b; configChanged();}
<a name="l00162"></a>00162     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDatarate(<span class="keywordtype">double</span> d)   {datarate = d; configChanged();}
<a name="l00163"></a>00163     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMACAddress(<span class="keyword">const</span> <a class="code" href="a00130.html">MACAddress</a>&amp; addr) {macAddr = addr; configChanged();}
<a name="l00164"></a>00164     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInterfaceToken(<span class="keyword">const</span> <a class="code" href="a00108.html">InterfaceToken</a>&amp; t) {token = t; configChanged();}
<a name="l00166"></a>00166 
<a name="l00169"></a>00169     IPv4InterfaceData *ipv4Data()<span class="keyword"> const </span>{<span class="keywordflow">return</span> ipv4data;}
<a name="l00170"></a>00170     IPv6InterfaceData *ipv6Data()<span class="keyword"> const  </span>{<span class="keywordflow">return</span> ipv6data;}
<a name="l00171"></a>00171     <a class="code" href="a00105.html">InterfaceProtocolData</a> *getProtocol3Data()<span class="keyword"> const </span>{<span class="keywordflow">return</span> protocol3data;}
<a name="l00172"></a>00172     <a class="code" href="a00105.html">InterfaceProtocolData</a> *getProtocol4Data()<span class="keyword"> const </span>{<span class="keywordflow">return</span> protocol4data;}
<a name="l00174"></a>00174 
<a name="l00177"></a>00177     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setIPv4Data(IPv4InterfaceData *p);
<a name="l00178"></a>00178     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setIPv6Data(IPv6InterfaceData *p);
<a name="l00179"></a>00179     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setProtocol3Data(<a class="code" href="a00105.html">InterfaceProtocolData</a> *p)  {protocol3data = p; configChanged();}
<a name="l00180"></a>00180     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setProtocol4Data(<a class="code" href="a00105.html">InterfaceProtocolData</a> *p)  {protocol4data = p; configChanged();}
<a name="l00182"></a>00182 
<a name="l00185"></a>00185     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> setEstimateCostProcess(<span class="keywordtype">int</span>, <a class="code" href="a00131.html">MacEstimateCostProcess</a> *p);
<a name="l00186"></a>00186     <span class="keyword">virtual</span> <a class="code" href="a00131.html">MacEstimateCostProcess</a>* getEstimateCostProcess(<span class="keywordtype">int</span>);
<a name="l00188"></a>00188 };
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 <span class="preprocessor">#endif</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>InterfaceEntry.h</b>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:30 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
